﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevelopStudio.Control.Basic;
using DevelopStudio.Basic;

namespace DevelopStudio.Control.FormPage
{
    public partial class ViewFeedbackComment : ChangeListFormBase
    {
        private ViewFeedbackComment()
        {
            InitializeComponent();
        }

        public ViewFeedbackComment(ChangelistInfo changelistInfo)
            : base(changelistInfo)
        {
            InitializeComponent();
            this.Text += " - " + this.ChangelistInfo.Name;
        }

        private void ViewFeedbackComment_Load(object sender, EventArgs e)
        {
            if (this.ChangelistInfo.SendedBy != null)
            {
                this.labelReviewer.Text = this.ChangelistInfo.SendedBy.Name;
            }

            this.richTextBoxDescription.Text = ChangelistInfo.FeedbackComment;
            this.buttonClose.Focus();
        }
    }
}
